{% extends "tutorial/base.html" %}

{% block title %}
        Poll Index
{% endblock %}

{% block head_css %}
    {% load staticfiles %}
    <link rel="stylesheet" href="{% static 'tutorial/css/poll.css' %}">
{% endblock %}


{% block content %}
    	{% if latest_question_list %}
    	   <ul>
    	   	{% for question in latest_question_list %}
    	    	<li><a href=" {% url "poll-detail" question.id %} "> {{ question.content }}</a></li>
    	   	{% endfor %}

    	    </ul>
    	{% else %}
    	    <p>No polls are available.</p>

    	{% endif %}
{% endblock %}
